<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:insert="~{common :: commomcss}"></head>
<body>
<!-- navbar-->
<div th:replace="~{common :: commonheader}"></div>
<div class="d-flex align-items-stretch">
  <div id="sidebar" class="sidebar py-3">
    <div class="text-gray-400 text-uppercase px-3 px-lg-4 py-4 font-weight-bold small headings-font-family">MAIN</div>
    <ul th:insert="~{common :: siderul}"></ul>
  </div>
  <div class="page-holder w-100 d-flex flex-wrap">
    <div class="container-fluid px-xl-5">
      <section class="py-5">
        <div class="row">

          <!-- Form Elements -->
          <div class="col-lg-12 mb-5">
            <div class="card">
              <div class="card-header">
                <h3 class="h6 text-uppercase mb-0">查看作业</h3>
              </div>
              <div class="card-body">
                <div th:utext="${publish.getContent()}"></div>
                <div class="line"></div>
                <div th:if="${publish.getHasattach()}">
                  <a th:href="@{/student/downAttach(publishid=${publish.getId()})}"><h3>点击下载附件(.zip)</h3></a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
    </div>

  </div>
</div>
<!-- JavaScript files-->
<div th:insert="~{common :: commomjs}"></div>
</body>
</html>